# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=apk-autoupdate
pkgver=0_git20210421
pkgrel=0
_gitrev=1704b284cbb2a8dd8a7791d13d9741cdfa062aad
pkgdesc="Alpine's tool for automatic updates"
url="https://github.com/jirutka/apk-autoupdate/"
arch="all"
license="MIT"
depends="apk-tools"
makedepends="asciidoctor"
subpackages="$pkgname-doc"
source="$pkgname-$_gitrev.tar.gz::https://github.com/jirutka/$pkgname/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	cd "$builddir"
	make build prefix=/usr
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="
146aa997632a4da7d70528fdedf9605253b8a6b73e26d99779c8296a94e293d36fed29d12733d98b85ffef2dd7a4e2f3969ce4e00a1874ad2b8ebcadf319615e  apk-autoupdate-1704b284cbb2a8dd8a7791d13d9741cdfa062aad.tar.gz
"
